﻿@using TinyMoocSite.ViewModels
@model HomeworkVM

@{
    ViewBag.Title = Model.Title + "|作业中心";
    Layout = "~/Views/Student/CoursePageLayout.cshtml";
}

@section Homework { active }

@section RightContainer
{
    <h4>作业中心</h4><hr />

    <table class="table">
        <thead>
            <tr>
                <th>编号</th>
                <th>作业名称</th>
                <th>发布者</th>
                <th>开始时间</th>
                <th>截止时间</th>
                <th>完成次数</th>
            </tr>
        </thead>
        <tbody>
            @foreach (HomeworkShortItem item in Model.HomeworkList)
            {
                <tr>
                    <td>@item.Id</td>
                    <td><a href="/Student/HomeworkDetails?CourseId=@Model.Id&HomeworkId=@item.Id">@item.Title</a></td>
                    <td>@item.Owner</td>
                    <td>@item.StartDate</td>
                    <td>@item.EndDate</td>
                    <td>@item.CompletedCount</td>
                </tr>
            }

        </tbody>
    </table>

}


